package com.neusoft.neu24g1.his5.controller;

import com.neusoft.neu24g1.his5.util.Dept;
import javafx.fxml.FXML;
import javafx.scene.control.ComboBox;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;

import java.util.ArrayList;
import java.util.List;

/**
 * RegController RegController
 *
 * @author Administrator
 * @version 2024/06/06 19:30
 **/
public class RegController {
    @FXML
    TextField tf_logid;
    @FXML
    PasswordField pf_logpwd;

    @FXML
    ComboBox cb_dept;

    @FXML
    public void initialize(){
        List<String> lds = new ArrayList<>();
        System.out.println("RegController.initialize");
        cb_dept.getItems().addAll(Dept.getDeptList());

    }


    @FXML
    public void onRegAction(){

        System.out.println(tf_logid.getText());
    }
}